package com.atguigu.springboot.service;

import com.atguigu.springboot.entity.Employee;
import org.apache.ibatis.annotations.Param;

/**
 * @author : wenchao.long
 * @date : Created in 2020/11/26 14:13 周四
 * @description :
 */
public interface IEmployeeService {
    /**
     * 通过id查询
     *
     * @param id id
     * @return Employee
     */
    Employee getById(@Param("id") Integer id);

    /**
     * 修改
     *
     * @param employee employee
     * @return Employee
     */
    Employee update(Employee employee);

    /**
     * 插入
     *
     * @param employee employee
     */
    void insert(Employee employee);

    /**
     * 删除
     *
     * @param id id
     */
    void deleteById(Integer id);

    /**
     * 通过name查询
     *
     * @param lastName lastName
     * @return Employee
     */
    Employee getByName(String lastName);
}
